﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebSiteManage.aspx.cs" Inherits="AiLuWeb.WebSite.WebAdmin.WebSiteManage" %>
<%@ Import Namespace="System.Linq" %>
<%@ Import Namespace="AiLuWeb.Model" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>网站基本信息管理</title>
    <link href="/css/admin/admin.css" type="text/css" rel="stylesheet" />
    <script type="text/javascript" src="/js/jquery.js"></script>   
    <script type="text/javascript" src="/js/admin/admin.js"></script> 
    <!--uploadify配置Begin-->
    <link rel="stylesheet" href="/js/uploadify/uploadify.css" />
    <script type="text/javascript" charset="utf-8" src="/js/uploadify/jquery.uploadify.js"></script>
	<script type="text/javascript">
	    $(function () {
	        $('#file_upload').uploadify({
	            'formData': {
	            },
	            'buttonText': '上传封面图片',
	            'queueSizeLimit': 1,
	            'swf': '/js/uploadify/uploadify.swf',
	            'uploader': 'Ajax/uploadify.ashx?t=5',
	            'onUploadSuccess': function (file, data, response) {
	                var obj = $.parseJSON(data);
	                if (obj.error == 0) {
	                    $("#faceImg").val(obj.url);
	                    $("#faceImgSrc").attr("src", obj.url);
	                }
	            }
	        });
	    });
	</script>
    <!--uploadify配置End-->
</head>
<body>
    <div class="titlebt">网站管理</div>
    <!--显示列表-->
    <div id="all">
        <div class="k_all3">
            <form id="form1" action="" method="post" onsubmit="return checkdata();">
            <table width="100%" cellpadding="0" cellspacing="0" id="bk">
                <tbody>
                    <tr>
                        <td width="100" height="35" align="right">
                            <span class="red">*</span>公司名：
                        </td>
                        <td colspan="2">
                            <input type="text" id="CompanyName" name="CompanyName" value="<%=topCompanys.CompanyName %>" style="width:350px" data-val="true" data-val-required="*请填写公司名！"/>
                            <span class="field-validation-valid" data-valmsg-for="CompanyName" data-valmsg-replace="true"></span>
                        </td>
                    </tr>
                    <tr>
                        <td width="100" height="35" align="right">
                            <span class="red">*</span>Email：
                        </td>
                        <td colspan="2">
                            <input type="text" id="Email" name="Email" value="<%=topCompanys.Email %>" style="width:350px" data-val="true" data-val-required="*请填写Email！"/>
                            <span class="field-validation-valid" data-valmsg-for="Email" data-valmsg-replace="true"></span>
                        </td>
                    </tr>
                    <tr>
                        <td width="100" height="35" align="right">
                            <span class="red">*</span>新浪微薄：
                        </td>
                        <td colspan="2">
                            <input type="text" id="SinaWeiBo" name="SinaWeiBo" value="<%=topCompanys.SinaWeiBo %>" style="width:350px" data-val="true" data-val-required="*请填写新浪微薄！"/>
                            <span class="field-validation-valid" data-valmsg-for="SinaWeiBo" data-valmsg-replace="true"></span>
                        </td>
                    </tr>
                    <tr>
                        <td width="100" height="35" align="right">
                            <span class="red">*</span>QQ微薄：
                        </td>
                        <td colspan="2">
                            <input type="text" id="QQWeiBo" name="QQWeiBo" value="<%=topCompanys.QQWeiBo %>" style="width:350px" data-val="true" data-val-required="*请填写QQ微薄！"/>
                            <span class="field-validation-valid" data-valmsg-for="QQWeiBo" data-valmsg-replace="true"></span>
                        </td>
                    </tr>
                    <tr>
                        <td width="100" height="35" align="right">
                            微信：
                        </td>
                        <td width="400">
		                    <input id="faceImg" name="faceImg" type="text" value="<%=topCompanys.WeiXin %>" style="width:350px">
                            <div>   
                                <input id="file_upload" name="file_upload" type="file" multiple="true"/>
                            </div>
                        </td>
                        <td  height="35">
                            <img id="faceImgSrc" src="<%=topCompanys.WeiXin %>" alt="" height="69" />
                        </td>
                    </tr>
                    <tr>
                        <td width="100" height="35" align="right">
                            <span class="red">*</span>QQ：
                        </td>
                        <td colspan="2">
                            <input type="text" id="QQ" name="QQ" value="<%=topCompanys.QQ %>" style="width:350px" data-val="true" data-val-required="*请填写QQ！"/>
                            <span class="field-validation-valid" data-valmsg-for="QQ" data-valmsg-replace="true"></span>
                        </td>
                    </tr>
                    <tr>
                        <td width="100" height="35" align="right">
                            <span class="red">*</span>ICP：
                        </td>
                        <td colspan="2">
                            <input type="text" id="ICP" name="ICP" value="<%=topCompanys.ICP %>" style="width:350px" data-val="true" data-val-required="*请填写ICP！"/>
                            <span class="field-validation-valid" data-valmsg-for="ICP" data-valmsg-replace="true"></span>
                        </td>
                    </tr>
                    <tr>
                        <td width="100" height="35" align="right">
                            常用链接1：
                        </td>
                        <td colspan="2">
                            链&nbsp;&nbsp;&nbsp;&nbsp;接：<input type="text" id="Link1" name="Link1" value="<%=!string.IsNullOrEmpty(topCompanys.Link1) && topCompanys.Link1.Split('|').Length > 0 ? topCompanys.Link1.Split('|')[0] : ""%>" style="width:350px"/><br />
                            链接名：<input type="text" id="LinkName1" name="LinkName1" value="<%=!string.IsNullOrEmpty(topCompanys.Link1) && topCompanys.Link1.Split('|').Length > 1 ? topCompanys.Link1.Split('|')[1] : ""%>" style="width:350px"/>
                        </td>
                    </tr>
                    <tr>
                        <td width="100" height="35" align="right">
                            常用链接2：
                        </td>
                        <td colspan="2">
                            链&nbsp;&nbsp;&nbsp;&nbsp;接：<input type="text" id="Link2" name="Link2" value="<%=!string.IsNullOrEmpty(topCompanys.Link2) && topCompanys.Link2.Split('|').Length > 0 ? topCompanys.Link2.Split('|')[0] : ""%>" style="width:350px"/><br />
                            链接名：<input type="text" id="LinkName2" name="LinkName2" value="<%=!string.IsNullOrEmpty(topCompanys.Link2) && topCompanys.Link2.Split('|').Length > 1 ? topCompanys.Link2.Split('|')[1] : ""%>" style="width:350px"/>
                        </td>
                    </tr>
                    <tr>
                        <td width="100" height="35" align="right">
                            常用链接3：
                        </td>
                        <td colspan="2">
                            链&nbsp;&nbsp;&nbsp;&nbsp;接：<input type="text" id="Link3" name="Link3" value="<%=!string.IsNullOrEmpty(topCompanys.Link3) && topCompanys.Link3.Split('|').Length > 0 ? topCompanys.Link3.Split('|')[0] : ""%>" style="width:350px"/><br />
                            链接名：<input type="text" id="LinkName3" name="LinkName3" value="<%=!string.IsNullOrEmpty(topCompanys.Link3) && topCompanys.Link3.Split('|').Length > 1 ? topCompanys.Link3.Split('|')[1] : ""%>" style="width:350px"/>
                        </td>
                    </tr>
                    <tr>
                        <td width="100" height="35" align="right">
                            常用链接4：
                        </td>
                        <td colspan="2">
                            链&nbsp;&nbsp;&nbsp;&nbsp;接：<input type="text" id="Link4" name="Link4" value="<%=!string.IsNullOrEmpty(topCompanys.Link4) && topCompanys.Link4.Split('|').Length > 0 ? topCompanys.Link4.Split('|')[0] : ""%>" style="width:350px"/><br />
                            链接名：<input type="text" id="LinkName4" name="LinkName4" value="<%=!string.IsNullOrEmpty(topCompanys.Link4) && topCompanys.Link4.Split('|').Length > 1 ? topCompanys.Link4.Split('|')[1] : ""%>" style="width:350px"/>
                        </td>
                    </tr>
                    <tr>
                        <td width="100" height="35" align="right">
                            <span class="red">*</span>分享：
                        </td>
                        <td colspan="2">
                            <textarea id="Share" name="Share" cols="50" rows="5" data-val="true" data-val-required="*请填写分享！"><%=topCompanys.Share %></textarea>
                            <span class="field-validation-valid" data-valmsg-for="Share" data-valmsg-replace="true"></span>
                        </td>
                    </tr>
                    <tr>
                        <td width="100" height="35" align="right">
                            <span class="red">*</span>统计代码：
                        </td>
                        <td colspan="2">
                            <textarea id="Tongji" name="Tongji" cols="50" rows="5" data-val="true" data-val-required="*请填写统计代码！"><%=topCompanys.Tongji%></textarea>
                            <span class="field-validation-valid" data-valmsg-for="Tongji" data-valmsg-replace="true"></span>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3" height="35">
                            <div class="pl200">
                                <input type="submit" class="butt_tle" style="width: 50px" value="确定" />
                            </div>
                        </td>
                    </tr>
                </tbody>
            </table>
            </form>
        </div>
    </div>
</body>
</html>